#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
using namespace std;

int main()
{
    close(0);
    //int fd = open("log.txt", O_WRONLY | O_CREAT | O_TRUNC, 0666);
    open("log.txt", O_RDONLY); 
    int a = 0;
    cin >> a;
    cout << a << endl;
    
    //binchdir("..");
    //bin FILE* fp = fopen("test.txt", "w");
    //if (!fp)
    //{
    //    perror("fopen");
    //    exit(1);
    //}
    //char* str = "file system";
    //int n = fwrite(str, strlen(str), 1, fp);
    //cout << "write block: " << n << "  " << "pid = " << getpid() << endl; 
    //fclose(fp);
    return 0;
}
